/*
 * Copyright 2017 Baiyyy
 * @(#)MailWarningTask.java
 */

package com.byyy.ccts.modules.task.task;

import com.byyy.ccts.core.utils.SpringContextHolder;
import com.byyy.ccts.modules.cc.service.IWarningService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by DELL on 2018-8-31.
 */
@Component
public class MailWarningTask {

    @Autowired
    private IWarningService warningService;

    public void delayWarning(String param) {
        this.warningService = SpringContextHolder.getBean("warningService");
        this.warningService.humitureDataDelayWarning();
    }

    public void zcdNotClosedWarning(String param) {
        this.warningService = SpringContextHolder.getBean("warningService");
        this.warningService.zcdNotClosedWarning();
    }
}
